import request from '@/utils/request';
import { stringify } from 'qs';
export default {
    getIndexGoods() {
        return request({
            url: '/api/getIndexGoods',
            method: 'get'
        })
    },
    getTypeGoods(payload) {
        return request({
            url: `/api/getTypeGoods?${stringify(payload)}`,
            method: 'get'
        })
    },
    getHotword() {
        return request({
            url: '/api/getHotword',
            method: 'get'
        })
    },
    searchGoods(payload){
        return request({
            url: `/api/searchGoods?${stringify(payload)}`,
            method: 'get'
        })
    }
};